// 引入 request 方法，假设 request 方法已经定义在某个工具文件中
import request from '/@/utils/request';
import { PageLogInput } from '../models';
// 定义 API 路径枚举
enum Api {
    SysLogDiffDetail = '/sysLogDiff/Data?id={id}',
    SysLogDiffPage = '/sysLogDiff/pages',
}

// 获取差异日志详情
export const apiSysLogDiffDetailIdGet = (id: number) =>
    request({
        url: Api.SysLogDiffDetail.replace('{id}', id.toString()),
        method: 'get',
    });

// 获取差异日志分页列表
export const apiSysLogDiffPagePost = (body: PageLogInput) =>
    request({
        url: Api.SysLogDiffPage,
        method: 'get',
        data: body,
    });
    
    export const SubUrlGet = () =>
        request({
            url: "/SubUrl",
            method: 'get', 
        });
    